<extend name="Org/base"/>
<block name="main">
    <section class="section main">
        <div class="clearfix con-main" id="mainContainer">
            <div class="con-left">
                <div class="panel">
                    <div class="panel-header">
                        <h3 class="panel-title bbs-title">{$bbs.name}</h3>
                    </div>
                    <div class="panel-body">
                        <div class="bbs-info">
                            <a class="photo bbs-photo" href="//bbs.wooo.wang/{$bbs.id}"><img src="//img.wooo.wang/{$bbs.avatar}"></a>
                            <p><strong>{:formatCount($bbs['visit'])}</strong> 浏览 • <strong>{$bbs.gx}</strong> 贡献度</p>
                            <p>{$bbs.desc|default='我好像什么都没写...'}</p>
                            <p class="handle"><if condition="UID"><a id="donationBtn" class="handle-donation" href="javascript:void(0)">打赏</a><else/><a class="handle-donation" href="javascript:alert('您需要先登录账号')">打赏</a></if></p>
                        </div>
                    </div>
                </div>
                <div class="panel" id="siderBox">
                    <ul class="switch-section">
                        <li><a href="{:U('/org/'.$bbs['id'])}"><span class="icon-road"></span> 社区展示</a></li>
                        <li><a href="{:U('/manage/'.$bbs['id'])}" class="red"><span class="icon-hammer"></span> 社区管理</a></li>
                        <li><a href="{:U('/review/'.$bbs['id'])}"><span class="icon-eye"></span> 审阅列表</a></li>
                        <li><a href="{:U('/log/'.$bbs['id'])}"><span class="icon-docu"></span> 贡献日志</a></li>
                        <li><a href="{:U('/apply/'.$bbs['id'])}"><span class="icon-yj"></span> 申请记录</a></li>
                        <if condition="$auth">
                            <li><a href="{:U('/createDoc/'.$bbs['id'])}"><span class="icon-add"></span> 添加文档</a></li>
                            <li><a href="{:U('/set/'.$bbs['id'])}"><span class="icon-setting"></span> 设置社区</a></li>
                        </if>
                    </ul>
                </div>
            </div>
            <div class="con-right">
                <div class="panel other">
                    <div class="panel-header">
                        <h1 class="topic-title">社区管理委员会<span class="icon-sum" id="toggleBtn" onclick="$('#mainContainer').toggleClass('toggle-side-mark');"></span></h1>
                        <p class="topic-info">
                            <a href="//bbs.wooo.wang/{$bbs['id']}">{$bbs['name']}</a> • 展示社区的管委会（管理委员会）主席和理事成员！
                        </p>
                    </div>
                    <div class="panel-body">
                        <if condition="$isManager">
                            <div class="other-connect">
                                <div class="sign-div">
                                    <a href="javascript:void(0)" class="btn btn-ed" onclick="$('#lzApplySec').toggle();" title="卸任管理员">卸任</a>
                                </div>
                            </div>
                        </if>
                        <br>
                        <ul class="other-links clearfix editor-ul">
                            <li><strong>主席：</strong></li><volist name="admin" id="vo"><li><a href="//wooo.wang/u/{$vo['id']}">{$vo.nick}</a></li></volist><if condition="$isManager and !$auth"><li><a href="javascript:void(0)" onclick="$('#applySec').toggle();">+ 申请</a></li></if>
                        </ul>
                        <br>
                        <ul class="other-links clearfix editor-ul">
                            <li><strong>理事：</strong></li><if condition="$manager"><volist name="manager" id="v"><li><a href="//wooo.wang/u/{$v['id']}">{$v.nick}</a></li></volist><else/><li><a href="javascript:void(0)">无</a></li></if><if condition="UID and !$isManager"><li><a href="javascript:void(0)" onclick="$('#applySec').toggle();">+ 申请</a></li></if>
                        </ul>
                        <br>
                        <if condition="UID and !$auth">
                            <div class="message" id="applySec" style="display:none;">
                                <h3>入职申请：</h3>
                                <form action="{:U('/orgManage/'.$bbs['id'])}" method="post" class="form">
                                    <div class="form-item">
                                        <input type="hidden" name="type" value="<if condition='!$isManager'>1<else/>2</if>">
                                        <textarea name="content" cols="30" rows="10" placeholder="请陈述您的申请理由[200字内]..." required></textarea>
                                        <p></p>
                                    </div>
                                    <button class="commit-suggest">提 交</button>
                                </form>
                                <br><br>
                            </div>
                        </if>
                        <if condition="$isManager">
                            <div class="message" id="lzApplySec" style="display:none;">
                                <h3>辞职报告：</h3>
                                <form action="{:U('/orgManage/'.$bbs['id'])}" method="post" class="form">
                                    <div class="form-item">
                                        <input type="hidden" name="type" value="-1">
                                        <textarea name="content" cols="30" rows="10" placeholder="请陈述您的理由[200字内]..." required></textarea>
                                        <p></p>
                                    </div>
                                    <button class="commit-suggest">提 交</button>
                                </form>
                            </div>
                        </if>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>